<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var s1=new Set(['java','js','c++'])
        s1.add('python')
        s1.delete('java')
        console.log(s1.has('java'),s1.has('js'));
        console.log(s1.keys());
        console.log(s1.values(s1.values()));
        s1.forEach(function(item,key,self){
            console.log(item,key,self);
            
        })
        console.log(s1.size);
        console.log(s1);
        var a1=Array.from(s1)
        console.log(a1[0]);
        
    </script>
</body>
</html>